<script setup>
import VerticalMenu from '@/components/VerticalMenu.vue';
import { watch } from 'vue';
import { useRoute } from 'vue-router';
const route = useRoute();
watch(()=>route.path,()=>{
  location.reload();
})
</script>

<template>
  <div class="frame">
    
    <h1>算法课设游戏合集</h1>
    
    <div class="main">
      <VerticalMenu></VerticalMenu>
      <div class="inner">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>
<style lang="scss" scoped>
.frame{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  h1{
    text-align: center;
    font-size: 50px;
    color: #a4a4a4;
    // margin-top: 200px;
  }
}
.main{
  display: flex;
  height: 100%;
}
.inner{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
</style>